package com.java.gamePackeg.event;

import com.java.gamePackeg.Player;
import com.java.gamePackeg.Product;

import javax.swing.*;
import java.util.List;

public class LoseMoneyEvent implements Event {
    private static final int MONEY = 500;

    @Override
    public void event(Player player, List<Product> marketProList) {
        JOptionPane.showMessageDialog(null, "走在街头被老太碰瓷，给了她500");

        player.setMoney(Math.round(player.getMoney() - MONEY));
    }
}
